(function(mui, document) {
mui.init();

mui.plusReady(function() {
	//设置为强制纵屏幕显示（html5）
	plus.screen.lockOrientation("portrait-primary");
	var name = document.getElementById("name");
	var type = document.getElementById("type");
	var dateof = document.getElementById('dateof');
	var content = document.getElementById("note"); 
	//为登录按钮添加事件
	var subButton = document.getElementById("subBtn");
	subButton.addEventListener('tap', function(event) {
		var params = {
			'entity.name': name.value,
			'entity.type': type.value,
			'entity.dateOf': dateof.value,
			'entity.note': content.value
		}
		app.ajax('impDateAction!do_save', params, function(data) {
			mui.back();
		});
	});
});
})(mui, document);